package com.cdtu.mapper;

import com.cdtu.entity.OperationRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdtu.vo.OperationRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sakura
* @description 针对表【op_record】的数据库操作Mapper
* @createDate 2023-01-08 12:38:04
* @Entity com.cdtu.entity.OperationRecord
*/
@Mapper
public interface OperationRecordMapper extends BaseMapper<OperationRecord> {
    int saveRecord(OperationRecord operationRecord);

    List<OperationRecord> findByPage(@Param("start") Integer start, @Param("rows") Integer rows);

    List<OperationRecordVO> findVoByPage(@Param("start") Integer start, @Param("rows") Integer rows);

    //查询总条数
    long findTotal();


    List<OperationRecordVO> findByDate(@Param("start") Integer start, @Param("rows") Integer rows, String value);
    //查询总条数
    long findByDateTotal(String value);
}




